home *** CD-ROM | disk | FTP | other *** search
/ New Star Software Collection / NSS_Collection.iso / 5-029 turbo debugger and assem / disks.7z / 3 / CHAPXMPL.ARC / DSLYSTR.ASM < prev    next >
Encoding:
Assembly Source File  |  1988-08-29  |  708 b   |  17 lines

  1.         DOSSEG
  2.         .MODEL  SMALL
  3.         .STACK  200h
  4.         .DATA
  5. DataString      DB  'This text is in the data segment$'
  6.         .CODE
  7. ProgramStart:
  8.         mov     bx,@data
  9.         mov     ds,bx                  ;set DS to the .DATA segment
  10.         mov     dx,OFFSET DataString   ;point DX to the offset of DataString
  11.                                        ; in the .DATA segment
  12.         mov     ah,9                   ;DOS print string function #
  13.         int     21h                    ;invoke DOS to print string
  14.         mov     ah,4ch                 ;DOS terminate program function #
  15.         int     21h                    ;invoke DOS to end program
  16.         END     ProgramStart
  17.